<?php
$headermsg = '\"HTTP/1.0 '.$code[0].' '.$code[1].'\"';
header($headermsg);
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo "<comments>";
foreach($comments as $comment){
	echo "<comment id=\"".$comment['Comment']['id']."\" ";
	echo "user_id=\"".$comment['Comment']['user_id']."\" ";
	echo "title=\"".$comment['Comment']['title']."\" ";
	echo "modified=\"".$comment['Comment']['modified']."\">";
	echo $comment['Comment']['comment_text'];
	echo "</comment>";
}
echo "</comments>";
?>